package com.ybkj.daijia.server.errand;

import java.io.Serializable;
import java.util.Date;

public class OrderImg implements Serializable {

    private static final long serialVersionUID = 1L;
    private Long id;            //图片id
    private String oldImg;        //放大后的图片
    private String smallImg;    //缩略图
    private Date created;        //创建时间
    private Date updated;        //修改时间
    private Long orderId;        //所属订单
    private String appKey;        //区分系统
    private String sources;        //图片来源地

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getOldImg() {
        return oldImg;
    }

    public void setOldImg(String oldImg) {
        this.oldImg = oldImg == null ? null : oldImg.trim();
    }

    public String getSmallImg() {
        return smallImg;
    }

    public void setSmallImg(String smallImg) {
        this.smallImg = smallImg == null ? null : smallImg.trim();
    }

    public Date getCreated() {
        return created;
    }

    public void setCreated(Date created) {
        this.created = created;
    }

    public Date getUpdated() {
        return updated;
    }

    public void setUpdated(Date updated) {
        this.updated = updated;
    }

    public Long getOrderId() {
        return orderId;
    }

    public void setOrderId(Long orderId) {
        this.orderId = orderId;
    }

    public String getAppKey() {
        return appKey;
    }

    public void setAppKey(String appKey) {
        this.appKey = appKey == null ? null : appKey.trim();
    }

    public String getSources() {
        return sources;
    }

    public void setSources(String sources) {
        this.sources = sources == null ? null : sources.trim();
    }


    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", oldImg=").append(oldImg);
        sb.append(", smallImg=").append(smallImg);
        sb.append(", created=").append(created);
        sb.append(", updated=").append(updated);
        sb.append(", orderId=").append(orderId);
        sb.append(", appKey=").append(appKey);
        sb.append(", sources=").append(sources);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}